# -*- coding: utf-8 -*-
# @Time    : 2021/5/29 20:18
# @Author  : YIGE
# @Email   : yige@maqu.com
# @File    : celery_main.py
# @Software: PyCharm
import os
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'yige_shopping.settings')

app = Celery('yige_shopping')  # 创建celery应用

app.config_from_object('celery_tasks.celery_config')  # 导入消息队列与结果存储的配置

app.autodiscover_tasks(['celery_tasks.email'])  # 导入任务
